package cn.iocoder.yudao.module.im.controller.admin.vo.conversation;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 会话响应VO
 */
@Schema(name = "会话响应VO")
@Data
public class ConversationRespVO {

    @Schema(description = "会话ID", example = "1")
    private Long id;

    @Schema(description = "星球ID", example = "1")
    private Long planetId;

    @Schema(description = "用户ID", example = "1")
    private Long userId;

    @Schema(description = "目标用户ID", example = "2")
    private Long targetUserId;

    @Schema(description = "目标群组ID", example = "1")
    private Long targetGroupId;

    @Schema(description = "会话类型", example = "1")
    private Integer type;

    @Schema(description = "未读消息数", example = "0")
    private Integer unreadCount;

    @Schema(description = "最后一条消息ID", example = "1")
    private Long lastMessageId;

    @Schema(description = "最后一条消息内容", example = "你好，世界")
    private String lastMessageContent;

    @Schema(description = "最后一条消息时间")
    private LocalDateTime lastMessageTime;

    @Schema(description = "是否置顶", example = "false")
    private Boolean pinned;

    @Schema(description = "是否免打扰", example = "false")
    private Boolean muted;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

}